package com.healthcloud.exception;

/**
 * <p>业务逻辑异常类定义</p>
 *
 * Created by xiam on 2015/6/3.
 */
public class BusinessException extends RuntimeException {

	private String error; // 异常代码

    public BusinessException(String error) {
        this.error = error;
    }

	public BusinessException(String error, String msg) {
		super(msg);
		this.error = error;
	}

	public BusinessException(String error, String msg, Throwable cause) {
		super(msg, cause);
		this.error = error;
	}

	public String getError() {
		return error;
	}
}
